//-----------------------------------------------------------------------
// <copyright file="Achievement.cs" company="Procure Development">
//     Copyright (c) Procure Development. All rights reserved.
// </copyright>
// <author>Victor Procure</author>
//-----------------------------------------------------------------------

using System;using MongoDB.Bson;using MongoDB.Bson.Serialization.Attributes;

namespace SManagement.Models{
    /// <summary>
    /// An achievement earned by a learner upon fulfilling a specified criteria,
    /// which may be defined by a related a Competency Set.
    /// </summary>
    public class Achievement
    {
        #region Instance Properties
        [BsonId]
        public ObjectId _id { get; set; }

        public ObjectId PersonId { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        public string Category { get; set; }

        public string CategorySystem { get; set; }

        public string ImageUrl { get; set; }

        public string Criteria { get; set; }

        public string CriteriaUrl { get; set; }

        public ObjectId? CompetencySetId { get; set; }

        public DateTime? StartDate { get; set; }

        public DateTime? EndDate { get; set; }

        public string AwardIssuerName { get; set; }

        public string AwardIssuerOriginURL { get; set; }

        #endregion Instance Properties}}